import RoleView from '@/views/role/index.vue'
import UserView from '@/views/user/index.vue'
import TableDemo1 from '@/views/ComponentView/pageComp/tableDemo1/index.vue'
import TableDemo2 from '@/views/ComponentView/pageComp/tableDemo2/index.vue'
import demand1 from '@/views/ComponentView/kaoheComp/demand1/index.vue'
import demand2 from '@/views/ComponentView/kaoheComp/demand2/index.vue'
import demand3 from '@/views/ComponentView/kaoheComp/demand3/index.vue'
import demand4 from '@/views/ComponentView/kaoheComp/demand4/index.vue'
import demand5 from '@/views/ComponentView/kaoheComp/demand5/index.vue'
import Dialog from '@/views/ComponentView/pageComp/tableDemo1/DialogPop/index.vue'
import AddFormPage from '@/views/ComponentView/pageComp/tableDemo1/addFormPage.vue'

export default {
  currentTabComponent: '', // 当前要渲染的组件名
  tabComponents: {
    RoleView: RoleView,
    UserView: UserView,
    TableDemo1: TableDemo1,
    TableDemo2: TableDemo2,
    demand1: demand1,
    demand2: demand2,
    demand3: demand3,
    demand4: demand4,
    demand5: demand5,
    AddFormPage: AddFormPage,
    Dialog: Dialog
  }, // 注册后的组件使用
  // el-menu数组
  subMenu: [
    {
      value: 'baseComponent',
      title: '页面展示',
      children: [
        {
          value: 'ElementPlus',
          // childTitle: 'elementTable二次封装',
          childTitle: '项目管理',
          childs: [
            // { value: 'RoleView', label: 'roleView页面' },
            // { value: 'UserView', label: 'userView页面' },
            { value: 'TableDemo1', label: '项目权限管理' },
            { value: 'TableDemo2', label: '项目进度管理' }
            // { value: 'AddFormPage', label: '新增表单页面' },
            // { value: 'Dialog', label: 'Dialog' }
          ]
        },
        {
          value: 'ElementPlus',
          childTitle: '考核任务',
          childs: [
            { value: 'demand1', label: '考核要求1' },
            { value: 'demand2', label: '考核要求2' },
            { value: 'demand3', label: '考核要求3' },
            { value: 'demand4', label: '考核要求4' },
            { value: 'demand5', label: '考核要求5' }
          ]
        }
      ]
    }
  ],
  tableDemo1: {
    isShowForm: false
  },
  tableDemo2: {
    isShowForm: false
  },
  demand1: {
    isShowForm: false
  },
  demand2: {
    isShowForm: false
  },
  demand3: {
    isShowForm: false
  },
  demand4: {
    isShowForm: false
  },
  demand5: {
    isShowForm: false
  }
}
